package com.example.demomongo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
@Data
@Document(collection="test")
public class User {

    @Id
    private String id;

    private String name;

    private String email;

    private int age;

    private Date registerDate;

    private String gender;

    private Address address;

}

